package com.cloudfun.campusshare.common.model;

import com.cloudfun.campusshare.common.constant.IdentityType;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author linyangping
 * @date 2019/10/21
 */
@Data
@AllArgsConstructor
public class Token {

    private long timestamp;
    private String pubKey;
    private String userId;
    private IdentityType identityType;

    public Token() {
        this.timestamp = System.currentTimeMillis();
    }

}
